
<script type="text/html" id="tp-cover-uploader">
    <img src="/platform/home/images/default-cover.jpg" class="cover-image"/>
    <input type="hidden" class="cover-input" name="{{propname}}" value="/platform/home/images/default-cover.jpg"/>
    <button type="button" class="btn btn-success up-cover-btn">上传封面</button>
</script>

<style>
 .cover-image{
     max-width: 160px;
     vertical-align: bottom;
 }
 .up-cover-btn{
     position: relative;
 }
</style>